package com.ruoyi.ea.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 老师管理对象 ea_teacher
 * 
 * @author wb
 * @date 2023-01-29
 */
public class Teacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 老师id */
    private Long id;

    /** 老师名字 */
    @Excel(name = "老师名字")
    private String name;

    /** 老师性别 */
    @Excel(name = "老师性别")
    private String sex;

    /** 老师电话 */
    @Excel(name = "老师电话")
    private String phone;

    /** 老师邮箱 */
    @Excel(name = "老师邮箱")
    private String email;

    /** 老师类型 */
    @Excel(name = "老师类型")
    private String type;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sex", getSex())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("type", getType())
            .append("creationTime", getCreationTime())
            .toString();
    }
}
